import 'package:json_annotation/json_annotation.dart';

part 'user_register.g.dart';


@JsonSerializable()
class UserRegister extends Object {

  @JsonKey(name: 'user_name')
  String userName;

  @JsonKey(name: 'password')
  String password;

  UserRegister(this.userName,this.password,);

  factory UserRegister.fromJson(Map<String, dynamic> srcJson) => _$UserRegisterFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserRegisterToJson(this);

}